<html>
<head><meta charset="utf-8"><title>Performance · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html">Performance</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="199901163"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199901163" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199901163">(Jun 05 2020 at 16:24)</a>:</h4>
<p>Hey all! First, thanks for the awesome work! <span aria-label="heart" class="emoji emoji-2764" role="img" title="heart">:heart:</span>️ I'm working on the winrt crate which is a crate for Windows Runtime bindings (think modern Windows APIs). These APIs are huge and so it's pretty easy for bindings to reach the hundreds of thousands or even millions of lines of code. Needless to say, it's a perf challenge. I'm wondering if it would be helpful to have our crate as a performance measure. You can give it a try with a simple scratch repo we set up: <a href="https://github.com/kennykerr/scratch">https://github.com/kennykerr/scratch</a> there shouldn't be anything special to run it, just a Windows 10 box.</p>



<a name="199901489"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199901489" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199901489">(Jun 05 2020 at 16:26)</a>:</h4>
<p>Could you also create a repo with all the code generated? Might be much easier to poke at if win 10 box is not required :)</p>



<a name="199901597"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199901597" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199901597">(Jun 05 2020 at 16:27)</a>:</h4>
<p>Sure. You won't be able to run it, but I guess that's not an issue</p>



<a name="199901774"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199901774" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199901774">(Jun 05 2020 at 16:29)</a>:</h4>
<p>Fun fact: IntelliJ Rust had (and I bet still has) special hacks in resolver to handle winapi crate</p>



<a name="199901868"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199901868" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199901868">(Jun 05 2020 at 16:29)</a>:</h4>
<p>yup, still there: <a href="https://github.com/intellij-rust/intellij-rust/blob/5a3d790d4d981c0f5a03761a340d7add69702e66/src/main/kotlin/org/rust/lang/core/resolve/Processors.kt#L38-L42">https://github.com/intellij-rust/intellij-rust/blob/5a3d790d4d981c0f5a03761a340d7add69702e66/src/main/kotlin/org/rust/lang/core/resolve/Processors.kt#L38-L42</a></p>



<a name="199902841"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199902841" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199902841">(Jun 05 2020 at 16:36)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> <a href="https://github.com/rylev/winrt-generated">https://github.com/rylev/winrt-generated</a></p>



<a name="199903250"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199903250" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199903250">(Jun 05 2020 at 16:39)</a>:</h4>
<p>Interesting note. the generated bindings seems faster than when going through a different create through an <code>include</code> macro</p>



<a name="199904109"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199904109" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199904109">(Jun 05 2020 at 16:46)</a>:</h4>
<p>Is there perhaps something when using <code>include!</code> that might be slowing things down?</p>



<a name="199906015"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/199906015" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#199906015">(Jun 05 2020 at 17:02)</a>:</h4>
<p>Moving stuff around in the file seems to cause it to wonk out though...</p>



<a name="200102851"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200102851" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200102851">(Jun 08 2020 at 14:14)</a>:</h4>
<p>I played more with the sample repo I posted above today. Besides a long startup time, the performance is ok. It still takes over a second for some types to resolve. I also am under the impression that performance is different when the code is pre-generated and included explicitly  in the project vs when the code is generated in the build script and read by an <code>include!</code> macro from OUT_DIR. I'm not exactly sure what the next steps should be</p>



<a name="200103242"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200103242" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200103242">(Jun 08 2020 at 14:17)</a>:</h4>
<p>Yeah, I think it's quite probable that <code>include!</code> is a problem here</p>



<a name="200103253"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200103253" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200103253">(Jun 08 2020 at 14:17)</a>:</h4>
<p>(or at least one of the problems)</p>



<a name="200103314"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200103314" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200103314">(Jun 08 2020 at 14:17)</a>:</h4>
<p>We've fixed an accidently quadratic behavior around <code>include!</code> a couple of weeks ago but there's still at least one <code>O(N^2)</code> thing left</p>



<a name="200103584"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200103584" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200103584">(Jun 08 2020 at 14:19)</a>:</h4>
<p>Are there tests around this? I need to look into getting rust-analyzer dev set upon my machine</p>



<a name="200103821"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200103821" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200103821">(Jun 08 2020 at 14:21)</a>:</h4>
<p>look for <code>infer_builtin_macros_include</code> and <code>include_accidentally_quadratic</code></p>



<a name="200103877"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200103877" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Florian Diebold <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200103877">(Jun 08 2020 at 14:21)</a>:</h4>
<p>the <code>include_accidentally_quadratic</code> test is actually ignored, presumably because it's still pretty slow</p>



<a name="200103896"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200103896" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200103896">(Jun 08 2020 at 14:21)</a>:</h4>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/blob/5ed9818a7c855bf914e91324e305f24e4e743057/crates/ra_hir_ty/src/tests/macros.rs#L553-L575">https://github.com/rust-analyzer/rust-analyzer/blob/5ed9818a7c855bf914e91324e305f24e4e743057/crates/ra_hir_ty/src/tests/macros.rs#L553-L575</a></p>



<a name="200104151"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200104151" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200104151">(Jun 08 2020 at 14:23)</a>:</h4>
<p>I'll see if I can make any dent in that.</p>



<a name="200104358"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200104358" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200104358">(Jun 08 2020 at 14:24)</a>:</h4>
<p><span class="user-mention" data-user-id="224872">@Ryan Levick</span> do you know about <code>RA_PROFILE</code> env var?</p>



<a name="200104426"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200104426" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200104426">(Jun 08 2020 at 14:25)</a>:</h4>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/dev#profiling">https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/dev#profiling</a></p>



<a name="200104471"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200104471" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200104471">(Jun 08 2020 at 14:25)</a>:</h4>
<p>Might be useful to narrow this down. I haven't looked into this myself yet, but the most probable cause is "somethig is quadratic".</p>



<a name="200112611"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200112611" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> rylev <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200112611">(Jun 08 2020 at 15:18)</a>:</h4>
<p>Sorry, had to step out. No I didn't know about that (I'm basically completely new to RA dev - only been a user until now). I'll give it a look</p>



<a name="200116151"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200116151" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200116151">(Jun 08 2020 at 15:40)</a>:</h4>
<p><a href="https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/dev">https://github.com/rust-analyzer/rust-analyzer/tree/master/docs/dev</a> is worth reading, but <code>git clone</code> and <code>cargo test</code> will get you pretty far.</p>



<a name="200400190"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200400190" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200400190">(Jun 10 2020 at 10:35)</a>:</h4>
<p><span class="user-mention" data-user-id="133169">@matklad</span> regarding the performance cc <a href="https://github.com/rust-analyzer/rust-analyzer/issues/4692#issuecomment-637076470">https://github.com/rust-analyzer/rust-analyzer/issues/4692#issuecomment-637076470</a>, it's strange that <code>codegen-units=1</code> doesn't increase the dist run time. If so I wonder if it really does give performance increase.</p>



<a name="200400670"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200400670" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200400670">(Jun 10 2020 at 10:41)</a>:</h4>
<p>That's compile-time peformance, right? In general, I wouldn't tweak anything here -- at the current level of internal optimization of RA, fine-grained tweaking of compiler optimization flags should be irrelevant -- those should come after the code base itself is optimized. </p>
<p>I wonder if incremental=true negates codegen units?</p>



<a name="200400818"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200400818" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200400818">(Jun 10 2020 at 10:43)</a>:</h4>
<p>Incremental=true did this untill 1.44 rust releaae</p>



<a name="200400973"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200400973" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200400973">(Jun 10 2020 at 10:45)</a>:</h4>
<p>Setting Codegen-units=1 trades compilation in 1 thread for potentially more optimizations rustc can do.<br>
I also wonder why we have incremental enabled for dist builds...</p>



<a name="200400983"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200400983" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200400983">(Jun 10 2020 at 10:45)</a>:</h4>
<p>We don't?</p>



<a name="200401040"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401040" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401040">(Jun 10 2020 at 10:46)</a>:</h4>
<p>There's <code>CARGO_INCREMENTAL: 0</code> in an <code>env</code> section at the top of <code>release.yaml</code></p>



<a name="200401060"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401060" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401060">(Jun 10 2020 at 10:46)</a>:</h4>
<p>I mean there is incremental=true release section of cargo toml</p>



<a name="200401087"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401087" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401087">(Jun 10 2020 at 10:47)</a>:</h4>
<p>Because matklad only runs release builds locally?</p>



<a name="200401160"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401160" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401160">(Jun 10 2020 at 10:48)</a>:</h4>
<p>Don't we have <code>debug=0</code> in <code>[dev]</code> profile for this purpose?</p>



<a name="200401245"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401245" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401245">(Jun 10 2020 at 10:49)</a>:</h4>
<p>debug=0 is to speed up local debug builds (debug info is huge). incremtal=1 is to speed up local release builds</p>



<a name="200401369"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401369" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401369">(Jun 10 2020 at 10:51)</a>:</h4>
<p>I think <code>CARGO_INCREMENTAL=0</code> in <code>release.yml</code> doesn't override what is specified in <code>Cargo.toml</code></p>



<a name="200401387"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401387" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401387">(Jun 10 2020 at 10:51)</a>:</h4>
<p>Or  does it?</p>



<a name="200401655"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401655" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401655">(Jun 10 2020 at 10:55)</a>:</h4>
<p>It should</p>



<a name="200401764"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200401764" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> std::Veetaha <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200401764">(Jun 10 2020 at 10:56)</a>:</h4>
<p>Ah, yes, the docs say so...<br>
I wonder why I thought it doesn't</p>



<a name="200403655"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200403655" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200403655">(Jun 10 2020 at 11:21)</a>:</h4>
<p>A <code>codegen-units=1 incremental=false</code> build takes 14 minutes on my laptop</p>



<a name="200404207"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200404207" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200404207">(Jun 10 2020 at 11:29)</a>:</h4>
<p>And analysis takes 57.7 vs. 59.8s</p>



<a name="200666065"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Performance/near/200666065" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jeremy Kolb <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Performance.html#200666065">(Jun 12 2020 at 12:55)</a>:</h4>
<p>I just wiped my target directory because I was running out of disk space. I now have an extra 50GB I didn't have before.</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>